xc_save: ignore the first suspend event channel notification
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 8 Sep 2008 10:16:23 +0000 (11:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 8 Sep 2008 10:16:23 +0000 (11:16 +0100)
commit0705c231d98cc36970b52d65b66a5aeeeec6a79b
tree9a3cce93bce5a3c33c0e806015435a3157f55ddb
parent112dcc7dd02c598057c6039e9756fbbf5fd6c1d3
xc_save: ignore the first suspend event channel notification

I've noticed that the suspend event channel becomes pending as soon as
it is bound. I'm not sure why or whether this is intentional, but it
means that the suspend function will return before the domain has
completed suspending unless the first notification is cleared. Without
this patch, xc_domain_save may find that the guest has not suspended
and sleep in 10ms chunks until it does. Typically this is several
milliseconds of wasted time.

From: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/xcutils/xc_save.c